Draw Gradient
Create image from gradient.
Node Data | |
|---|---|
Display name | |
Draw Gradient | |
Internal name | |
Node_Gradient | |
Inheritances | |
| Node_Processor | |
| Node_Gradient | |
Inputs | |
Output | |
vec2 |
Dimension |
surface |
Uv Map |
slider |
Uv Mix |
surface |
Mask |
Gradient | |
gradient |
Gradient |
slider |
Shift |
slider |
Scale |
enum |
Loop |
Remap | |
curve |
Progress Remap |
float |
Inverse Axis |
curve |
Inverse Curve |
Shape | |
enum |
Type |
rotation |
Angle |
float |
Radius |
vec2 |
Center |
vec2 |
Shape |
bool |
Uniform Ratio |
Rendering | |
range |
Level |
curve |
Curve |
Outputs | |
surface |
Surface Out |
Attributes | |
| Color Depth | |

Gradient node draw gradient on to the surface. Visit Gradient for a node that output a gradient data.

Properties
| Gradient | |
| Gradient | The gradient to draw. |
| Shift | Shift the gradient keys by a fix amount. ![]() |
| Scale | Scale the gradient. ![]() |
| Loop | Loop the keyframe back when overflowing. ![]() |
| Shape | |
| Type | Types of the gradient. ![]() |
| Angle | Linear and Radial types only. The angle of the pattern. |
| Radius | Circular type only. Radius of the pattern. |
| Senter | Center point of the pattern. |
| Uniform Ratio | For non-square output, whether to follows the surface aspect ratio or use uniform 1:1 ratio. ![]() |
| Rendering | |
| Level | Apply brightness level adjustment. |
| Curve | Applt brightness curve adjustment. |
Commit History
| 1.21.4.002 |
|
|---|
Related Links
- Base Code: /scripts/node_gradient/node_gradient.gml
- Shader [sh_gradient]: /shaders/sh_gradient/sh_gradient.fsh



